/// <summary> /// Returns the GST portion of the <see cref="Money"/> that has been paid given a GST rate. /// </summary> /// <param name="gstRate">The GST rate.</param> public Money GstPaid(Gst gstRate) { return(Multiply(gstRate.GstFraction / gstRate.Multiplier)); }
/// <summary> /// Adds the GST portion to the original money at the GSTRate provided. /// </summary> public Money Add(Gst gstRate) { return(Multiply(gstRate.Multiplier)); }
/// <summary> /// Returns the total amount of GST that should be payed for this monetary amount based on /// the given GST rate. /// </summary> public Money GstToPay(Gst gstRate) { decimal value = gstRate.ToDecimal() / 100; return(Multiply(value)); }