More accurate date difference calculation.
For the deprecated algorithm a day was over after exactly 24 hours, from the actual time.
The new algorithm checks, if a real day passed.