getBossList($instance); $done = 0; foreach($bosses as $boss){ if(!empty($boss['date'])){ $done++; } } return (($done/100)*count($bosses))*1000; } public function form($instance) { $raid_name = !empty($instance['raid_name']) ? $instance['raid_name'] : ""; ?>

" name="get_field_name("raid_name")); ?>" value="">

" name="get_field_name("bosses[$i][name]")); ?>" value="">

" name="get_field_name("bosses[$i][date]")); ?>" value="">