Forum Discussion
AviSikenporePro
8 years agoQrew Trainee
Katie, For this you will need the field that has the month you are calculating. For example : if someone stayed for 3 months from 15th Jan to 20 April, there are different number of days that person has stayed in each month.
If you just need to know January (first month from the date admitted) that is fairly simple. Just use the following formula :
ToDays(Min(LastDayOfMonth(Date(Year([BTC Admission Date]),Month([BTC Admission Date]),1)),[BTC Discharge Date]) - [BTC Admission Date])
If you just need to know January (first month from the date admitted) that is fairly simple. Just use the following formula :
ToDays(Min(LastDayOfMonth(Date(Year([BTC Admission Date]),Month([BTC Admission Date]),1)),[BTC Discharge Date]) - [BTC Admission Date])
- KatieGriffiths8 years agoQrew TraineeThank you Avinash-trying it out-not lucky so far...But I appreciate the thought behind this.