Pick a depth. Each prompt opens in your AI pre-loaded with the lesson. Click a row to preview the prompt.
Customer Acquisition Cost is the single number that separates profitable paid channels from expensive vanity metrics. Without a clean CAC calculation you cannot compare channels, set bids, or know whether scaling spend will create or destroy value. Every growth decision downstream — how much to spend, which channel to prioritise, when to cut a campaign — is anchored to this number.
CAC = Total spend ÷ New customers acquired in the same period. The period alignment is critical: spend and customers must cover the same window or the ratio is meaningless.
spend to 18000 and new_customers to 90 — note how CAC rises even though more customers were acquired.new_customers to 0 and observe the ZeroDivisionError — add a guard that returns None instead, since undefined CAC is informative.salaries variable representing the cost of the marketing team and compute fully-loaded CAC vs. ad-spend-only CAC side by side.