40 minutes is the rule for domestic flights, international flights on widebodies are typically 55 minutes. In my experience, if you're flying a CRJ or ERJ (regional jet), the boarding pass will say 40 minutes but actual boarding begins at 30 minutes.