Automating calculations with Knockout