Change trim calculation math so it should converge much faster