$postdays = $vbulletin->db->query_read("SELECT joindate,posts FROM " . TABLE_PREFIX . "user WHERE userid = $post[userid]");{$mpostdays = $vbulletin->db->fetch_array($postdays); $jd = time()-$mpostdays['joindate'];$mpsts = round($jd/$mpostdays['posts']/86400);}