Is this what you're looking for?

http://mcgimpsey.com/excel/variablerate.html