A simple setup for the determination of the cosmic muon magnetic moment