How to constraint a sum so that the inputs do not exceed the total entered previously?

You could do this as outlined in the post discussed previously: