CAP calculator