Whats the best way to calculate your calorie intake?

Since when i had started losing weight ta the beginning of this year instead of losing i have gained 8lbs!!!!! i think there might be something wrong with my calorie intake but i dont know what the best way of measuring it is.

i get confused between all the different methods- what MFP has sent me, TDEE and the rest of it. But does anyone know the best way to calculate your calorie intake?

FYI i am 153.5lbs, 5Ft6 female, sedentary lifestyle and walk for an hour during the weekdays and workout for hour on both saturday and sunday. MFP set me a calorie intake of 1330 when losing 1lb a week.

please help, i really dont want to gain any more! :(

edited to say ive just opened my food diary so if anyone could help and check it out that would be great - (maybe ive had too many days where ive gone over my calorie intake?)