Days to integer on timediff API