You can use benefit of your loop for appending li elements. Just change your
li element to:
calculateRate() function change the
.rate class for every if statement:
Complete working code : jsFiddle
Now you can have as many as you want
list objects, and it will loop throught each, and according from their
ratePercent value it will set properly color of text.