Age Ranges and Demographics

What age range are you writing for? How old should your characters be? Where is the line between Middle Grade and YA?