It doesn't matter how long a battery is charged. What matters is "over" charging. So, if it takes 30 hours at a low enough current, that's fine. If it takes 2 weeks at sufficiently low enough current, that's fine. As long as the cell isn't over charged.
However, with that said, if a battery is "never" getting charged and a long time has passed, there's something wrong. It's self-discharging.
40Ah battery charging at 2A should take about 20hours from full discharge to full charge. If the battery was 50% SoC and it still has taken 20 hours, then there's an issue somewhere. Either a bad connection or you have a self-discharging battery.