check tip calculation