How to fit Brazilian complex taxes in ERPNext taxes

These guys came up with a method that could probably be adjusted for your scenario…