Starting with 2,736 UP
Starting with 143,037 xp
Starting with 96,117 gp
17 to 18 takes 587 UP = 9979 xp (153,016 xp total) and 58,700 gp added
18 to 19 takes 1,000 UP = 18000 xp (171,016 xp total) and 140,000 gp added
19 to 20 takes 1,000 UP = 19000 xp (190,016 xp total) and 180,000 gp added
End gp = 474,817 gp
149 UP left after all expenditures
I hope that this all checks out.