finish the calculation module