How long can metformin be detected in a urinalysis?

A 500 milligram dose of metformin is removed by the kidneys in about 24 hours. It would be undetectable in about 48 hours.