Almost linear integrals