For all my injured pals 🤒

Question for the group - what is a fair amount of time to give yourself to train for a marathon after coming back from injury?

Just found out I have a tibial stress fracture and want people’s thoughts.