Would be nice to have an open source implementation of this.
This requires constant updating and maintenance because tax laws are always changing.
It's also exactly the kind of thing companies _wouldn't_ use open source for because if the code gets the tax law wrong they have nobody to transfer liability to. Once you have a corporate entity backing a subscription service, insurance underwriters can understand what's going on and you can finally manage your risks.