Added method to calcualte progress - not tested as web2py didn't load it properly