Calculates tips.