Mark Manders
Giga Patron

Which value is your variable 'days' returning? add gs.log('Days: ' + days);

 

parseInt will truncate to the nearest lower integer, after you make days from the milliseconds. This could cause mismatches. Maybe use 'Math.round()' so you get the nearest whole number.

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark