The battery rating and various other parameters are relevant. For instance, if a 12V 50Ah battery is 20% drained, it will charge in 2 hours. If it is 50% discharged, it will charge in 4 hours. Hence, utilising a 100w solar panel, it will take a 12V 50Ah solar battery about 5-8 hours to fully charge.