Hello
I have a case study section within a website that I am building for some energy-saving projects. One of the EE fields is a date field. I enter this date as the day the project installation was complete.
This is what I want to do with the calculation.
1) Get the current date
2) Get the date of installation
3) calculate the number of days that have passed
4) Get the Annual Savings (also an EE field)
5) Divide the Annual Savings by 365
6) Multiply the result of 5) by the result of 3)
7) Show the final result of 6) and round down to get rid of any decimal places
The reason for doing this is to show the amount of savings to-date.
How would I go about doing this in EE? I’m guessing that some PHP will be involved, but I’m a quick learner. Any help would be much appreciated.
Cheers :0)