You need to do a discharge test. This process involves the following steps..
1) Do a full charge of the battery.
2) Place a known load (know/fixed/steady watts) or used a tool such as an iCharger X8 or a killowatt meter in conjunction with a load.
3) Discharge down to the cut-off voltage - presumably you have a BMS with cut-off, so discharge till the BMS cuts-out.
4) Read the results and figure what you 'actually' have.
For example, let's say you have a 12v -> 120v inverter, you could use a killowatt meter (120v load measurement unit that's not too expensive) connected to a hot plate of heater or some other load around 700w or so.
Note: Its common to pick a discharge standard such as 0.2C which you can determine by the specs of your battery. Its not that important for a ball-park test but the idea is to do a solid but ordinary load so it doesn't take a week but won't do max current pull from the battery.
Let it run till BMS cut-off (hopefully you have a BMS) and the killowatt meter will show you the total watt-hours. The inverter would have 10-15% loss to add in - so could add that in to the total.
A 400ah battery @ 12v should have around 4,800watt-hours at 100% discharge. In theory, a 700w load (4800wh/700w per hour) will run for 6.86hrs.