Deflection calculation