update diycalculator.cpp