Gate is converted from period_t to t