Simplifies warning calculations