Fixed logic bug in repair bonus, safer age discount

Up to now, if the perks distance was 0 no maintenance bonus would have
been gained (thus making maintenance useless for Skilled parts).

With the new formula, the bonus can be greater than 100%: DiscountAge
has been fixed to prevent a negative age, at all costs.