Try flopzilla and basic calculators mate. This is straight forward math problem.
2 outs x 3 cards (flop cards) x 2% (if standard 52 card deck) = 12% chance of flopping a set, aka once in about 8,(3) times, lets aggressively round it up to 9.
Now work out SPR and basic probability of you stacking your opponent.
Usually id recommend 20 SPR against a normal range and reasonably aggressive player, from there you can deviate depending on your reads.
Hope this helps and Good Luck!
Things to look at:
What is my position?
How often will I get squeezed or am I closing the action?
How deep are stacks? You definitely would want 100bb stacks for set mining.
You hit a set around 1 out of eight times. This means you will have to fold flop pretty regularly.
Which makes for another point. How good are you in folding weak pairs on the flop. If you struggle there, I would more often fold preflop already.
What are the blinds and stack sizes? If you're getting great implied odds, you need at least 7:1 implied odds to hit your set.
Know your opponent's raising range too for that given bet sizing. People automatically think oh he might have AKo, but he can also AA, KK, QQ there, and JJ sometimes. AK is just 1/4 or 1/5 of his range where you're both flipping. He's a 4:1 favorite otherwise