The simplified formula is:

1/F = 1/f1 + 1/f2

In your case, F = 1/(1/410 + 1/590) mm = 241.9mm

or pretty close to 240mm. There are a couple of corrections for cell spacing and so on, but this should be fairly close.