Detection in your urine is dependent on the amount you take and how regular your usage is. A guideline for detection in urine is:
1 to 2 days for occasional consumption.
3 to 4 days for higher intakes.
(https://www.narcocheck.com/en/urine-drug-tests/ketamine-test.html)