May be the OP has been answered but still I would like to add what Hazrat Aqdas Hakim-ul-Ummat Mujaddid-e-Millat Maulana Shah Muhammed Ashraf Ali Sahab Thanwi (RA) said that a person who goes ahead on committing a sin with the intention that he shall repent later on is in the danger of loosing his iman. Personally I have not read many warnings that are more stern than this one. May Allah(SWT) protect us from the trickeries of nafs and Iblis.