A helper program for calculating costs per 1 ton of metal