affiliate income formula