Funkcja automatycznego obliczania podatków