Calculating the leverage factor