I am new as can be at Pathfinder/D20, especially MAGIC.
Would someone please explain all the steps it takes if I were to cast DETECT MAGIC in a room, I wouldn't have any distractions, that would tell me if any MAGIC is present, especially dice rolls, what for and when.