A tip calculator with sliding tip bar