Korean Capital Gains Tax

$$Tax = (Gain - LTHD - Basic) \times ProgressiveRate$$