Deterministic and low latency communications are increasingly becoming essential requirements for several safety-critical applications, such as automotive and automation industries. The timesensitive networking (TSN) is an element of the new IEEE 802.1 standards that introduced Ethernet-based amendments to support these applications. One of these enhancements was presented in IEEE 802.1Qbv to define time-aware shaping (TAS) technique for time-triggered (TT) traffic scheduling. The TAS mechanism is a window-based scheduling using a gating system controlled by the gate control list (GCL) schedules in all nodes. Although several scheduling algorithms have been proposed to investigate the effects of windowrelated parameters on network performance, the offset difference ( ) between the same-class windows in the adjoining nodes has not been optimized yet. These optimizations are extremely crucial to implement less pessimistic latency schedules. In this paper, we propose an optimized flexible window-overlapping scheduling (OFWOS) algorithm that optimizes TT window offsets based on latency evaluations considering the overlapping between different priority windows at the same node. First, we formulate the GCL timings as mathematical forms under variable s between the same-priority windows. Then, an analytical model is implemented using the network calculus (NC) approach to express the worst-case end-to-end delay ( ) for TT flows and evaluated using a realistic vehicular use case. The OFWOS model optimizes under all overlapping situations between TT windows at the same node. In comparison with latest works of 3-hop and 30-hop TSN connections, the OFWOS reduces the bounds by 8.4% and 32.6%, respectively which accomplishes less pessimistic end-to-end latency bounds.