Invest 10% of your expected total project time into upfront research.
If you’ll spend a day a week on the project, for 3 months, totalling 72 hours, then spend 7 hours on metalearning research.
If the project is extremely large, you can scale down the 10% a bit.
Ref: