It’s not “where you live” but where the company operates. I happen to (indirectly) co-own a UK ltd. It does business in the UK and has UK resident employees. It pays taxes in the UK only. But if that Ltd. would operate in Germany from a German office and have German resident employees, it would likely be classified as German tax subject.