The science that can hurt your margins