Optimal Storage and Marketing Over Space and Time