Since you haven't been smoking for the last months, smoking a gram over a couple of days will probably be undetectable in your average urine screening within a few weeks if you continue to keep your metabolism pumping. IOW, keep working out and drinking lots of water and by the end of the month you should be fine. Hair tests are a different ballgame, however. Hair can provide a fairly accurate profile of the drugs you have put into your body over a few years.