You can do as many attempts as you want as long as they finish before reset. It will take whichever attempt was your best time for the leaderboard.