Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

calculation help for one of requirement

Are Kaveri
Tera Contributor

Hi ,

 

I have below requirement,

 

I have field called number of days.

i want it in number of months .

 

we have a calculation for below.

total interest = number of days(in months) * 0.5*12

 

I am not understanding how to convert number of days in months.

 

 

 

 

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage

Hi @Are Kaveri ,

 

To convert days in to month u can just divide the number of days value by 30.44 ( which is basically the average of 12 months)

 

So it should be like 

 

var months = number_of_days/30.44

 

Thanks,

Danish

 

View solution in original post

1 REPLY 1

Danish Bhairag2
Tera Sage

Hi @Are Kaveri ,

 

To convert days in to month u can just divide the number of days value by 30.44 ( which is basically the average of 12 months)

 

So it should be like 

 

var months = number_of_days/30.44

 

Thanks,

Danish