Tariff changes
This commit is contained in:
parent
b480a70fda
commit
5e15e86b4e
1 changed files with 34 additions and 27 deletions
25
tariff.go
25
tariff.go
|
@ -4,19 +4,27 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
//const dailySupplyCharge = 105.750 / 100 // 1 July 2020 - 30 June 2021
|
const (
|
||||||
const dailySupplyCharge = 98.234 / 100 // 1 July 2021 - 30 June 2022
|
//dailySupplyCharge = 105.750 / 100 // 1 July 2020 - 30 June 2021
|
||||||
|
//dailySupplyCharge = 98.234 / 100 // 1 July 2021 - 30 June 2022
|
||||||
|
//dailySupplyCharge = 98.234 / 100 // 1 July 2021 - 30 June 2022
|
||||||
|
dailySupplyCharge = 1.099030 // 1 July 2021 - 30 June 2022
|
||||||
|
|
||||||
var (
|
|
||||||
//solarFeedInTariff = fixedTariff(8.471 / 100) // 1 July 2020 - 30 June 2021
|
//solarFeedInTariff = fixedTariff(8.471 / 100) // 1 July 2020 - 30 June 2021
|
||||||
solarFeedInTariff = fixedTariff(6.501 / 100) // 1 July 2021 - 30 June 2022
|
//solarFeedInTariff = fixedTariff(6.501 / 100) // 1 July 2021 - 30 June 2022
|
||||||
tariff93 = &onOffPeakTariff{
|
solarFeedInTariff = fixedTariff(0.088830) // 1 July 2022 - 30 June 2023
|
||||||
|
)
|
||||||
|
|
||||||
|
var tariff93 = &onOffPeakTariff{
|
||||||
// 1 July 2020 - 30 June 2021:
|
// 1 July 2020 - 30 June 2021:
|
||||||
//onPeak: 32.137 / 100,
|
//onPeak: 32.137 / 100,
|
||||||
//offPeak: 14.963 / 100,
|
//offPeak: 14.963 / 100,
|
||||||
// 1 July 2021 - 30 June 2022:
|
// 1 July 2021 - 30 June 2022:
|
||||||
onPeak: 29.852 / 100,
|
//onPeak: 29.852 / 100,
|
||||||
offPeak: 13.9 / 100,
|
//offPeak: 13.9 / 100,
|
||||||
|
// 1 July 2022 - 30 June 2023:
|
||||||
|
onPeak: 0.333990,
|
||||||
|
offPeak: 0.155510,
|
||||||
isPeak: (&weekdayHours{
|
isPeak: (&weekdayHours{
|
||||||
zone: time.FixedZone("UTC+10", +10*60*60),
|
zone: time.FixedZone("UTC+10", +10*60*60),
|
||||||
on: [24]bool{
|
on: [24]bool{
|
||||||
|
@ -30,8 +38,7 @@ var (
|
||||||
20: true,
|
20: true,
|
||||||
},
|
},
|
||||||
}).isPeak,
|
}).isPeak,
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
type tariff interface {
|
type tariff interface {
|
||||||
pricePerKWh(time.Time) float64
|
pricePerKWh(time.Time) float64
|
||||||
|
|
Loading…
Reference in a new issue