Skip to content

Instantly share code, notes, and snippets.

@arhimondr
Created March 1, 2016 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arhimondr/aaf0a6e4265f7f75dbcc to your computer and use it in GitHub Desktop.
Save arhimondr/aaf0a6e4265f7f75dbcc to your computer and use it in GitHub Desktop.
var baseCreditPercent = 10;
var promoCreditPercentFromThirtyToSixtyDays = 5;
var promoCreditPercentFromSixtyDays = 3;
var creditPercent = baseCreditPercent;
if(30 <= creditTerm && creditTerm < 60){
creditPercent = promoCreditPercentFromThirtyToSixtyDays;
} else if(60 <= creditTerm){
creditPercent = promoCreditPercentFromSixtyDays;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment