Are you asking about a beam or a column?
Are you an engineer?
I am an engineer. I ask, because the question does not make sense as stated. Kl/r does not matter for a beam. Neither do the compression member provisions.
The formula you're using also makes no sense for a beam.
I have already opted out. Good luck with your class.