calculating gross pay (needs improvements)