refactoring timeRemainingString