Basically all is calculated based on full gross figures. Income taxes also calculated before deducting social security contributions. This leads to marginal tax rate going up to over 67% btn certain income limits and then dropping a bit when reaching socsec contribution ceilings.