calculate the total output since 1707 days ago for patient 12307.
select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12307 ) ) and datetime(outputevents.charttime) >= datetime(current_time,'-1707 day')