fix for the issue #1649

if min value is exactly equal to 12:00 AM, then it was not pushed to higherRanks Array as we are adding interval time before checking whether it is 12:00 AM.
deducting min by 1 to make sure it will be pushed.