Calculation for Varying Direction