Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a financial constraint which states that:

spend on x cannot exceed 15% of total spend, where spend on x is part of the sum of total spend, ie:

`total spend` = `spend on x` + `spend on y` + ...
`spend on x` <= 15% * `total spend`

Given the total spend and spend on x, how could I calculate capped spend on x?

share|cite|improve this question
if I understand meaning of capped spend correctly,(it being maximum amount you can spend on x), then it is nothing but $15 \% $ of total spend. What is the question then?? Please clarify the question.. – TheJoker Nov 15 '12 at 8:54
This part of a social responsibility calculation. So businesses can spend more than 15% on x, but only up to 15% will be recognised. – Gazza Nov 16 '12 at 5:47
up vote 2 down vote accepted

If we start by calculating spend_on_other:

total_spend = spend_on_x + spend_other


 spend_on_other = total_spend - spend_on_x

Now we want to solve for capped_spend_on_x by assuming that spend_on_x is the maximum value (ie 15%), it follows that spend_on_other will be 85%. Since there is no cap on spend_on_other it follows that

capped_total_spend = capped_spend_on_x + spend_on_other

Given capped_total_spend is t,

t = 0.15t + spend_on_other


0.85t = spend_on_other


t = spend_on_other / 0.85

Having then the total capped_total_spend, we need only substitute

capped_spend_on_x = t * 0.15


capped_spend_on_x = (spend_on_other / 0.85) * 0.15


capped_spend_on_x = ((total_spend - spend_on_x) / 0.85) * 0.15
share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.