Calculates tips, mainly a good demo of responsive design