calculating gross pay (still needs improvements)