Custom purchase invoice for copra

IMG_1896

how can i customize my purchase invoice for copra.

like on the image attached.

formula:
2770−371 = 2399
2399×41.20 =98838.8