Is my C# Calculation Right?
<p>So this is the Question below and was wondering if my code is right can you guys correct me if I'm wrong? thanks:</p>

<p>Gold card coupon rules:</p>

<ul>
<li>if the balance is less than $2500 the coupon is 3% of the balance</li>
<li>if the balance is more than $2500 the coupon is 4% if their years is less than 2 years</li>
<li>if the balance is more than $2500 the coupon is 5% if their years is 2 or more years</li>
</ul>

<p>Code:</p>

<pre><code>public class GoldCard : Card
{
    int year;

    GoldCard(string id, string name, double balance, int year)
        : base(id, name, balance)
    {
        this.year = year;
    }

    public int Year
    {
        get { return year; }
        set { year = value; }
    }

    public double CalcCouponValue()
    {
        double Rate = 0;
        if (balance &lt; 2500)
        {
            Rate = 0.03 * balance;
        }
        else if (balance &gt; 2500 &amp;&amp; year &lt; 2)
        {
            Rate = 0.04 * balance;
        }
        else if (balance &gt; 2500 &amp;&amp; year &gt; 2)
        {
            Rate = 0.05 * balance;
        }

        return Rate;

    }
</code></pre>
