Forum Discussion
BlancaAnderson
6 years agoQrew Assistant Captain
Were you able to get the formula for this? I need to calculate the number of months between two dates.
------------------------------
Blanca Anderson
------------------------------
------------------------------
Blanca Anderson
------------------------------
BlancaAnderson
6 years agoQrew Assistant Captain
Answer: I was using the wrong field type. I was using duration but needed to use Formula Numeric.
This formula worked for me.
(([End Date] - [Start Date]) / Days(30))
------------------------------
Blanca Anderson
------------------------------
This formula worked for me.
(([End Date] - [Start Date]) / Days(30))
------------------------------
Blanca Anderson
------------------------------
- ParadoxHomes4 years agoQrew MemberThis formula worked, but sometimes skipped a number for me. I found this formula to work pretty well on an amortization table I was building.
var number numOfYears = Year([Payment Date]) - Year([First Payment Date]);
var number numOfMonths = Month([Payment Date]) - Month([First Payment Date]);
var number npers = If($numOfYears = 0,
$numOfMonths,
($numOfYears*12) + $numOfMonths);
$npers
------------------------------
Paradox Homes
------------------------------