Fixed the calculations for LM Engine