instruction: how many days has it been since the last time patient 23436 stayed in ward 12 in this hospital visit.
response: SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23436 AND admissions.dischtime IS NULL)) AND transfers.wardid = 12 ORDER BY transfers.intime DESC LIMIT 1