Mark,
I'm not 100% clear on what you're asking but both the Main Record and Sub-records store State values. There's nothing that really needs to be calculated about them, they are simply checkboxes bound to a single state.
The main record State boxes tell the user, at a glance, which states...