From your diagram I see 5.607m from boundary to the wall of the house.
Therefore if the granny flat was attached, the maximum width of the granny flat could be 2.607m.
Now if you want it separated, the minimum would have to 1.8m if you didnt want to do a fire rated wall.
Therefore 5.607...