calc a, b in ll