Made this calculator to keep track of the number of days I spend outside the UK in any coninuous period of 365 days.
Useful for frequent travellers who intend to apply for the ILR (Indefinite Leave to Remain) and want to prevent accidentally violating the residency requirements.
-
Ensure you have poetry installed. Read here for instructions how to install if not.
-
Navigate to the root directory of this project and run
poetry install
. -
Put your travel dates in the accompanying
travels.csv
file. The fields in the file are as follows:- departure (string, dd-mm-yyyy) - The date on which you exit the UK.
- arrival (string, dd-mm-yyyy) - The date on which you re-enter the UK.
- work (boolean) - Whether the trip is work related.
- leaves (int) - The number of annual leaves used in your travel.
-
Run
poetry run python residency_calculator.py
.