Added utils.js
Added calculateCost function.
Export calculateCost.