The construction of multi-story buildings is a complex process that requires careful consideration of time and safety. This research study aims to optimize the reinforced concrete (RC) work duration in multi-story building construction while maintaining safety through a Python program integrated with a genetic algorithm. The methodology involves analyzing the slab and shore load distribution at each construction stage and identifying factors that influence the RC work duration. A genetic algorithm optimizes RC work duration using sensitivity analysis. The study found that RC work duration is influenced by stripping time, cycle time, and the levels of shoring used. The minimum striking time for M50 concrete grade is one day. When the cycle time is 6–8 days, the required minimum level of shoring is two, but it increases to four for a lower cycle time of 3 days. The study recommends M35 grade concrete for the best shoring combination, prioritizing safety. The study's originality lies in the development of a Python program that optimizes the RC work duration for the partial striking construction method. Its practical applications can help construction companies to streamline their construction process, manage their construction time more effectively, and improve project outcomes.