go to whattoexpect.com and put your dates into the pregnancy calculator
When the baby is born do a DNA test on it
Could be either guy, with a slight edge to the guy you had more sex with. The August 7 guy would be a little late for ovulation if your period began July 18, but not unreasonably late, especially if you have longer cycles.