For DIY
Principal applicant only:
NIW 140: $190
EB1-140: $190
each person of Principal and dependents:
I-485: $385 (required for everyone)
I-765: $175 (if u need EAD, optional)
Ap: $195 (about, did not check, optional)
You can calculate based on how many dependents you have.
If you hire a attorney, add lawyer's fee to your budget.