Skip to content

Instantly share code, notes, and snippets.

@drmmr763
Created July 11, 2012 15:36
Show Gist options
  • Save drmmr763/3091203 to your computer and use it in GitHub Desktop.
Save drmmr763/3091203 to your computer and use it in GitHub Desktop.
calcRegBill Function
double calcRegBill(int a)
{
if (a <= base_R_min)
amtDue = R_Srv_Fee;
else
amtDue = R_Srv_Fee + ((a - base_R_min) * over_RbaseFee );
return amtDue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment