This link should help explain ideas
http://www.xantrex.com/web/id/25/learn.asp
As for how they tell, it's usally on a net meter basis. In otherwords, if you meter goes ahead 2000 from your use, then it's sunny and your use drops, thus putting power back into the "grid" for let's say 500, your...