calculate earned media