How to convert months to years

Hi All, I want solution on one issue like I have a months and I want to convert that months into years, For example: 24 month = 2 years, 30 months= 2 years 6 months. can any one tell me how can we do that. Thanks
1 answers

Dear Priyanka,


You can use Arithmetic expressions and Mathematical functions, example inside variables .

Divide the number X by 12 and take floor, this will give you the Years.

Use X mod 12, this will give you the remaining months.


Refer to this Documentation for Arithmetic expressions and this Documentation for Mathematical functions.