calculate mean time between adjacent gates, changed date display