Added tab calculation