Fix minute calculation