Weapons are a bit different than nanos, one because AAO/AAD effects weapons (it doesn't effect nanos), and two most weapons are 100% def checks.
That being said, it's something like....
WeaponSkill1*(WeaponSkillCheck1/100)+WeaponSkill2*(WeaponSkillCheck2/100)+AAO
(Yes, my calculator has a % check for AAO/AAD, 'cause I'm lazy. )
Nano skills are similar to that.
(If you're an uber haxer you can find the formula's on my calculator page. )