ことにする・ことになる・ことになっている: the difference
ことにするN3
Meaning
To decide on, Have decided to
Past papers
Tested 8 times in past papers
Example
今日はエイプリルフールだからウソしか言わないことにする。
Since today is April Fool's, I've decided to only tell lies.
ことになるN3
Meaning
It will end up being, It is the result of, It has been decided that
Past papers
Tested 5 times in past papers
Example
どうしてこんな事になったの?意味がわからないよ。
Why did it end up like this? I don't get it.
ことになっているN2
Meaning
To be expected to, To be scheduled to
Past papers
Tested 3 times in past papers
Example
この寮では、起床時間は6時ということになっている。
In this dorm, wake-up time is six o'clock.
How to tell them apart
「ことにする」 is your own decision: 「休むことにした」 (I decided to take a day off).
「ことになる」 is decided from outside: 「休むことになった」 (It's been arranged that I take a day off).
「~ことになっている」 is an established rule, law or custom: 「日本では靴を脱ぐことになっている」 (In Japan you're supposed to take off your shoes).