how much was patient 24364's hospital bill for her stay until 3 years ago?
select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24364 ) and datetime(cost.chargetime) <= datetime(current_time,'-3 year')