private static double getPRMsbf(int t, double period, double supply) {
		int k = getK(t, period, supply);
		if (t >= (((k + 1) * period) - (2 * supply))
				&& t <= (((k + 1) * period) - supply))
			return t - ((k + 1) * (period - supply));
		else
			return (k - 1) * supply;
	}