How would I write an if statement to calculate a monthly payment in a new field
For example
Let's say I have a record where the [payment start date] is 1/1/2022 and the [payment end date] is 12/31/2022 and the [monthly payment] is $1,000
I want to set up new fields for each month (Jan - Dec) using the Formula function
Just beginning but here is what i have so far
if([PaymentStartDate]<'01-01-2022'
AND
[PaymentEndDate]>'01-31-2022'
then [PaymentAmount]
else 0
endif
I would also like to be able to calculate prorated payments as well, so any ideas would be very helpful. For example - calculate a payment for 1/15/2022 - 1/31/2022 where the monthly payment is $1,000 ($1,000/EOMday * (EOMday-Startdateday+1))