The effect of the potion is only temporary, and depending on how well it has been brewed, may last anything from between ten minutes and twelve hours. You can change age, sex and race by taking the Polyjuice Potion, but not species.