Delete calculate_theta