created tip calculation