I have a query which computes for date interval.
Then in the report, I used the function SUM basing from the query
to show the total_years and total_months.
The problem now is in total_months, because if it exceeds or equal to 12, the total_years should increase by one (1) then the total_months will now be zero (0).
e.g.
total_years: 5 total_months: 15
the correct output should be:
total_years: 6 total_months: 3
How will I do this?
Please help!
Then in the report, I used the function SUM basing from the query
to show the total_years and total_months.
The problem now is in total_months, because if it exceeds or equal to 12, the total_years should increase by one (1) then the total_months will now be zero (0).
e.g.
total_years: 5 total_months: 15
the correct output should be:
total_years: 6 total_months: 3
How will I do this?
Please help!