@mwfan1921 provided you with the FAFSA formula. You can see the entries. Those are used to calculate your FAFSA EFC.
If you are asking how different colleges compute for awarding their institutional need based aid…well…there are probably as many different formulas for that as there are colleges.