The Rambam says if someone's virtues-vs-sins balance is even as of Rosh Hashanah, their verdict happens on yom kippur. If they did teshuva in those ten days, they get a pass; if not, they don't.
Question is, why teshuva necessarily? Just do lots more good deeds in that period!