:
: 'Calculate user periods-per-week and periods-in-four-hours'
if test $# -ne 2
then
	echo Usage: unfdl rate limit
	exit
fi
rate=$1
limit=$2
if test $rate -gt 255 -o $rate -eq 0 
then echo Warning: rate out of range
fi
if test $limit -gt 255 -o $limit -eq 0
then echo Warning: limit out of range
fi
: 'cost factor (average)'
cost=5
:
: 'sess-in-a-row = limit / ( rate * cost )'
sessiar=`expr $limit / \( $rate \* $cost \)`
:
: 'sess-per-week = 336 / (rate * cost)'
sesspw=`expr 336 / \( $rate \* $cost \)`
echo "periods_per_week = $sesspw	periods_in_four_hours = $sessiar"
