We start from the take-home you enter and search for the gross figure that lands on that number after deductions.
Employee: Income Tax → National Insurance → student loan → pension.
Sole trader: Income Tax → Class 4 NI → student loan → pension.
Ltd director: a fixed £12,570 salary plus dividends, after Corporation Tax, Income Tax, employee NI and Dividend Tax.