Rewrite calculation code to map/reduce queries on the server.
further work on the sprint view.