you don't want to exceed 525, so you set the inequality to be

we can think of the max as just

solve for x


(note: always round down so that you don't exceed the max. ex. you could round to 4.11 instead of 4.12. x=4.12 would give you a value greater than 525)