fixed calculation of tips