The strength of a vote is calculated based on the number of tokens an account has staked for either CPU or Network Bandwidth, and the number of REX tokens held by that account, along with the time that the account last performed any of these actions: voteproducer, delegatebw, undelegatebw, buyrex, sellrex, or updaterex.