Fixed bug with countdown timer calculation