finish fontend calculate format