Custom form submission with budget calculation

Okay Maybe I can style it though but how to find the script for that calculation how they did it calculation and then put it to the form field as un-editable