Calculate tab

Addresses: https://bugs.launchpad.net/oq-platform/+bug/1233255