Calculation using expression builder
We have 2 fields
Estimated Gallons/Month - Number Type
Expected 1st Delivery - Date Type
Based on these 2 we ahve to calculate the Estimated Annual Gallons
THe calculation needed is as follows:
IF the Expected 1st Delivery YEAR is same as CURRENT YEAR then ((12-CURRENT MONTH) * (Gallons/Month)) else 0
+
IF the Expected 1st Delivery YEAR is same as CURRENT YEAR then Count the remaining days from the current month and multiply that with (gallons/month / 30)
- Using Julain Year I was able to compare the YEAR values. But can I also calculate the month number and day for the rest of the calculation?