finish fmt_calc