finished raw calculation for both Piston types