how many days have elapsed since patient 40059 had his first propoxyphene nap.-apap (n-100) prescription during the current hospital visit?
select 1 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40059 and admissions.dischtime is null ) and prescriptions.drug = 'propoxyphene nap.-apap (n-100)' order by prescriptions.startdate asc limit 1