How to make accounting entries for gratuitous gifts of equipment

Giving away equipment for free, if this equipment is the unit's own production of products, the accounting treatment is,

Borrow: non-operating expenses (cost + similar products selling price * VAT rate),

Loan: inventory (cost),

Taxes payable - payable value-added tax (output tax) (the selling price of similar products) *VAT rate).