How does linear attribution model calculate credit?