Calculation widget giving wrong result.