Can't figure out how to return multiple calculated values (3 values, 2 dependent on first) C#/MVC
<p>Been reading about <code>out</code>/<code>ref</code> and <code>tuple</code>, but for the life of me cannot figure out how to implement a way to return three (3) values (whether within same method that calculates my main value, or with separate methods). I am able to perform a calculation with one value (the main value) which deals with pricing for a service.</p>

<p>Here is a snippet of what I've done to calculate that main value:</p>

<pre><code>public class Calculations
{
    public decimal decFinancialAccount(QuoteData quoteData)
    {
        if (quoteData.StepAssetInformation.FinancialAccountDropDown
            == StepAssetInformation.FinancialAccount.None)
            return 0;
        else if (quoteData.StepAssetInformation.FinancialAccountDropDown
            == StepAssetInformation.FinancialAccount.One)
            return PriceQuote.priceFinancialAccount;
        else if (quoteData.StepAssetInformation.FinancialAccountDropDown
            == StepAssetInformation.FinancialAccount.Two)
            return (PriceQuote.priceFinancialAccount * 2);
        ...
        else
            return 0;
    }
    public decimal CalculateChapter7(QuoteData quoteData)
    {
        decimal total = PriceQuote.priceChapter7;

        ...
        total += this.decFinancialAccount(quoteData);

        return total;
    }
}
</code></pre>

<p>The above works out great. It obviously has other <code>decimal</code>'s that are added, but you get the idea.</p>

<p>Now, I am wanting to perform additional calculations on the <code>CalculateChapter7</code> value that is returned. </p>

<p>The first value is a <code>DiscountChapter7</code> / <code>discount</code> (variable in method?) price: above a certain amount, discounts are applied for every increment of 50. I got no problem listing them all out if I have to (rather than complicating things for myself). There is no set formula for the discounts, I just created an Excel sheet to visualize my discounts (see below).</p>

<p>The second value is a <code>CompareChapter7</code> / <code>compare</code> (variable in method?) price: for every discounted price I offer, a comparison is made to what other's charge for the same service. Again, there is no formula per se, I just used an Excel sheet to figure those out arbitrarily. </p>

<p>In addition, I'd like to (within the "discount" and "compare") do a simple subtraction to show "savings" (calculated price - discounted price = savings) and "difference" (other attorneys charge - discounted price = difference). I imagine when I get the two values above working that these additional two would be simple.</p>

<p>Here is my Excel sheet (just a small snippet):</p>

<p><img src="http://i.stack.imgur.com/JF1rv.png" alt="Excel sheet with pricing I want"></p>

<p>A few notes about that:</p>

<ol>
<li>Between 799 and 999 there are no discounts (the "rounded" column is just to bring those numbers to a 50 increment for my ease of use and are not relevant).</li>
<li>The Excel formulas are pretty straightforward (fee - discounted price = savings; other attorneys charge - discounted price = difference) - which is what I am trying to attain within my code.</li>
</ol>

<p>Can anyone provide a solid example of how to integrate the "discount" and "comparison" with my calculated price?</p>

<p>Thanks!</p>
