check_salary
Compare a gross annual salary and 4-digit SOC code against UK Skilled Worker thresholds to see if it meets the required going rate, and get the rule applied.
Instructions
Check a salary against the Skilled Worker salary requirement for an occupation.
The requirement is the higher of a general threshold and the occupation's published going rate, so both the salary and the occupation code are needed.
Args: salary: Gross annual salary offered, in pounds. soc_code: 4-digit SOC 2020 occupation code for the job, e.g. "2136". Ask the user or the employer for it; do not guess a code from the job title. new_entrant: True if the applicant qualifies for the new entrant rate, e.g. under 26, a recent UK student or graduate, in professional training, or in an eligible postdoctoral role.
Returns a verdict (meets, below, occupation_ineligible, going_rate_unavailable, unknown_occupation), the required salary and the rule that produced it, the other discount options the job could qualify under, and the date the thresholds were published.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salary | Yes | ||
| soc_code | Yes | ||
| new_entrant | No |