Adding max_amount variable to Redundancy calculator