Optimization of Short and Long Term Storage Duration