Size DC and AC cables for solar installations with appropriate derating
https://www.electronetautomation.com/calculators/solar-cable-sizing