Short program to calculate pay frequency amounts