private static function calculateAmount($planid) { $plan = Api_Dao_Payments::getPlanByPlanid($planid); $price = $plan[0]['price']; return $price; }