Changed calculation edited console log