calculating tip amount and total pay