They can cast it at will. This means anytime they feel like it, and it is their attack turn, they can use the Fire Ball attack. Remember that a Fire Ball has a 20 ft sphere radius, so make sure your party is spread out.