getting transition costs based on time