The law that fixes the length of the school year in your state is probably part of the compulsory attendance law. Today, most states require attendance of all school age students to be 180 days or its equivalent.