expires function

extract the correct expires value from an instrument