On top of 4 type tax rate, Also don’t forget you might need
Pay invest net income tax
The net investment income tax is due on the lesser of your undistributed net investment income or the portion of your MAGI that exceeds the thresholds. Multiply the lower number by 0.038 (3.8%).