Understanding the impact of injection duration on the induced seismic hazard