staging_time = datetime.timedelta(hours = int(config['timing']['staging-hours']))
key_age = datetime.datetime.now() - key_mtime(staging)
if key_age < staging_time:
staging_time = datetime.timedelta(hours = int(config['timing']['staging-hours']))
key_age = datetime.datetime.now() - key_mtime(staging)
if key_age < staging_time: