Pdas are sometimes diagnosed in adults.
So there is no time at which we are "supposed to know". Some pdas do not cause murmurs and so no one would suspect it existed. Those pdas do not require treatment. If the PDA is causing a murmur, there is debate about whether they need to be treated. Bottom line is that there's no age when we "need" to know. It depends on your child's overall health.