calc code complete