This is an exponential decay problem. We have that the half life of chocolate is 2 hours, this means that after two hours the amount of chocolate reduce by a factor of 2.
The formula for an exponential decay is:

Where N(t) is the amount of chocolate at time t, N0 is the initial amount of chocolate, t is time and lamda is a constant. We can find the constant lamda with the half life time of 2 hours, so:

In our case, the initial amount of chocolate is 75 grams and the amount of chocolate after 7 hours is:

So, at 11 pm yo will have 6.63 grams of chocolate and will have a problems to falling sleep.