Created
March 1, 2016 10:45
-
-
Save arhimondr/aaf0a6e4265f7f75dbcc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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