converting bpm to milliseconds per beat is just maths...
specifically, unit conversion.
(anyone here who remembers elementary physics
will begrudgingly admit to knowing what i mean.)
given that you have:
60 seconds per minute
a tempo of 180 (adjust accordingly with each tune)
tempo is in beats per minute
1000 milliseconds per second
we want:
milliseconds per beat
60 (seconds/minute) / 180 (beats/minute)
= 1/3 (seconds/beats)
1/3 (seconds/beats) * 1000 (milliseconds/second)
= 1000/3 (milliseconds/beats)
or...
333.33 milliseconds per beat @ 180bpm.
as far as what values to use for the attack + release,
that's entirely up to you.
but if you make it multiple or divisor of your tempo,
the compressor or limiter will "breathe" on the beat,
instead of at some interval/rhythm of its own.