Added Error Checking and created calcTipRate