use timedelta when calculating key pan