A continuous review inventory model with a time discount