Duke Energy can have about $20 million in tax credits that were disallowed by South Carolina’s tax agency because the law governing the credits grants a $5 million annual limit, not a $5 million lifetime limit, an appeals court ruled Wednesday, overturning an administrative law judge.