An egg's characteristics in SWSH are determined when the egg is collected, likely based on a combination of the initial seed and the frame you click "yes" on. There's no egg seed for advance determination of eggs like there was in gen 7, so there's no set number of eggs you need to collect to get a shiny, and rejecting an egg has no practical effect on future eggs.