There is no definitive answer to this question since everyone metabolizes THC at different rates. In general, however, edibles with higher concentrations of THC tend to produce longer-lasting effects. So if you’re looking for a strong, long-lasting high, opt for an edible with a higher THC content. For reference check How Long Do Edibles Last? Everything You Need to Know.
If you are not used to edibles and take strong edibles they will last for a very long time. The first time I ate an edible it lasted around 12 hours, and it was a very intense experience. I don’t recommend taking more than you can handle, especially if you’re new to edibles. Start with a low dose and work your way up until you find the perfect amount for your tolerance level.
It’s always better to err on the side of caution when it comes to edibles.