An online BAC calculator uses the Widmark formula and its modern refinements to estimate your blood alcohol concentration from the inputs you provide — weight, sex, drink volume, alcohol strength, food intake, and time. It is a useful guide, but it is an estimate, not a measurement. Two people giving the same inputs can have different real BAC because of differences in metabolism, recent meals, medication, and liver function.
For driving in Japan, treat the estimate conservatively. If a calculator shows you anywhere near the threshold, do not drive — the real value could be higher, and the only legally decisive reading is the police breathalyser at the roadside. The safest use of a calculator is to confirm you are well clear of the limit, or to check your morning-after risk before driving the next day.