Hi, I am trying to calculate the cost of gas depending on usage. There are 4 different rates for each band. The more you use the cheaper it gets per Mega Joule. The rate are as follows.
First 4000 MJ = 0.023 cent / MJ
Next 5000 MJ = 0.018 cent / MJ
Next 10000 MJ = 0.012 cent / MJ
balance = 0.009 cent / MJ
Now lets say the user has consumed 22000 MJ in the month, how can I calculate this? I can calculate if there are two bands by using IF function but I am having difficulty with four different rates.
Thanks in advance
Bookmarks