Refactoring time-card function.