"Es beträgt jedenfalls nicht über drei Jahre."
You are absolutely right: betragen can be translated in different ways. Without furhter knowledge about "es" there is no good translation. At best you could say something general such as "The time frame is definitely not more than three years." If "es" is "das Strafmaß" then "take time" is not the right translation.