The three numbers behind the credit
First, the benchmark premium: the cost of the second-lowest-cost silver plan offered to your household in your rating area, for the whole year. Second, the applicable percentage: the share of your household income the law expects you to contribute, which rises with income. Third, your income itself.
The credit is the benchmark premium minus your income times that percentage, and it is capped by two things: the benchmark premium itself, which stops the credit from exceeding the plan used as the yardstick, and the price of the plan you actually chose, which stops the credit from being more than the cover costs.