Fix for days interval (using a method to have a cleaner code)