Tip calculator based on slide rule mechanism