Fix "ValueError: Unknown format code 'd' for object of type 'float'" when (duration % 60) is a float