Define customSetInterval for time interval values greater than max supported by setInterval.
Use customSetInterval if timeInterval value is more than maxTimeInterval set.
Set maxTimeInterval value to 1 day.
Move calculateExpiration call in reset function for better performance.
Define customSetInterval for time interval values greater than max supported by setInterval. Use customSetInterval if timeInterval value is more than maxTimeInterval set. Set maxTimeInterval value to 1 day. Move calculateExpiration call in reset function for better performance.