Added parseInt to currentMinute in conversion calculation to fix error.