This is where the math gets really crazy