I'll have to look at the code some more and think about it.  @shunter has been doing a lot with knockout lately, so he may have some ideas that I'm not aware of.  @emackey may also have some good ideas on the calculation in general.