f[dB_]:=If [dB≥-0.0001, 9,
If[dB<-36,0,
If[dB≥-12, 8+Ceiling[dB/3],
 6+Ceiling[dB/6]]]];

Plot[f[dB],{dB,-45,0},PlotRange->All]